
<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 * FileName: videoManager.php
 * Goal: Manage videos 
 * author: Nguyen Van Nam
 * contact: nguyennamcdt1@gmail.com
 * License: Nam&Thien
 */
require_once 'connect.php';
require_once 'checksessionlogin.php';
?>

<html>
    <head>
        <title>Administrator</title>
        <style type="text/css">
            body{
                margin: 0px auto;
                width: 960px;
                height: 100%;
                border: 2px solid #cccccc;
                -moz-boder-radius: 15px;
                overflow: auto;
                line-height: 1.6;
            }
                                   
        </style>
        
        <link rel="stylesheet" href="css/adminStyle.css"/>
        <link rel="stylesheet" href="css/video_manager.css"/>
        <link rel="stylesheet" href="css/fancybox/fancy.css"/>
    </head>
    
    <body>
        <div id="header">
            <div class="logo"></div>
            <div id="logout">
                <ul>
                    <li><a href="../index.php">Home</a></li>
                    <li><a href="#">Logout</a></li>
                </ul>               
            </div>
        </div>               

        <?php
            require 'Video.php';
            $myVideo = new Video();
            $myVideo->getAdminSite();            
        ?>
             <script language="javascript">

                    function showHint()
                    {
                        if (window.XMLHttpRequest)
                          {// code for IE7+, Firefox, Chrome, Opera, Safari
                          xmlhttp=new XMLHttpRequest();
                          }
                        else
                          {// code for IE6, IE5
                          xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
                          }
                          xmlhttp.onreadystatechange=function()
                            {
                                if (xmlhttp.readyState==4 && xmlhttp.status==200) // readyState  == 4 <=> complete
                                {
                                    document.getElementById("form").innerHTML=xmlhttp.responseText;
                                }
                            }
                        xmlhttp.open("GET","Video.php?todo=showForm",true);
                        xmlhttp.send();
                    }
            </script>
       <div id="form">

       </div>
       <div id="footer-admin">
           <h3 align="center"><a href="../index.php">Contact us</a></h3>
           <p> Author: NAM&Thien</p>
       </div>
    </body>
</html>
